package com.example.demo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
@ApiModel(description = "商品项实体")
public class GoodsItem {
    @ApiModelProperty("商品编号")
    private long id;

    @ApiModelProperty("商品名")
    private String name;

    @ApiModelProperty("商品数量")
    private int num;

    @ApiModelProperty("商品单价")
    private double price;
}
